import axios from "./axioss"
import qs from "qs"
//精品接口
export const JingPinAPI = () => axios.get("/products/recommend")
//热门兑换
export const ReMenAPI = () => axios.get("/products/hot")
//登录验证码
export const DengLyanzAPI = (pay) => axios.post("/sendSMS", qs.stringify(pay))
//登录请求
export const PhoneReginAPI = (pay) => axios.post("/phoneRegin", qs.stringify(pay))
//微信扫码登录
export const WeixinsmAPI = (pay) => axios.post("/wechatUsers/PCLogin", qs.stringify(pay))
//关联手机
export const BindingAPI = (pay) => axios.post("/wechatUsers/binding", qs.stringify(pay))
//获取用户信息/shop/userProfiles
export const UserProfilesAPI = () => axios.get("/shop/userProfiles")
//商品详情
export const ProductsAPI = (id) => axios.get(`/products/${id}`)